/**
 * OnStartupServlet.java - 2012-2-16
 *
 * Licensed Property to China UnionPay Co., Ltd.
 * 
 * (C) Copyright of China UnionPay Co., Ltd. 2012
 *     All Rights Reserved.
 *
 * Project Info: China UnionPay Internet Acquiring Project
 * 
 * Modification History:
 * =============================================================================
 *   Author         Date          Description
 *   ------------ ---------- ---------------------------------------------------
 *        
 * =============================================================================
 */
package com.lijin.batchsys.web.servlet;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import com.lijin.batchsys.framework.schedule.BatchQuartzLauncher;

/**
 * 
 * Description: 启动时初始化批量信息
 *
 * (C) Copyright of China UnionPay Co., Ltd. 2012.
 *
 */
public class OnStartupServlet extends HttpServlet {

	private static final long serialVersionUID = 6056445687120971126L;

	@Override
	public void init() throws ServletException {
		// 将批次按照配置进行Quartz调度器的初始化
		BatchQuartzLauncher.initBatchSchedule();
	}

	@Override
	public void destroy() {
		// 停止Quartz调度器
		BatchQuartzLauncher.stopBatchSchedule();
	}
	
}